package com.shopping.shoppingdemo.utils.annotion;

import com.shopping.shoppingdemo.enums.UserRole;

import java.lang.annotation.*;

/**
 * @author Yandel
 * @date 2025/10/20 下午8:58
 * @description:
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Permission {
    /**
     * 限定权限
     *
     * @return
     */
    UserRole role() default UserRole.ALL;
}
